/**
 * @description  Handle all reducers
 */

import { HAS_LOGIN } from './action_types'

const initialState = {
  hasLogin: false
}

export default (state = initialState, action) => {
  switch (action.type) {
    case HAS_LOGIN:
      return Object.assign({}, state, {
        hasLogin: action.hasLogin
      })
    default:
      return state
  }
}
